﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Entity.Blog
{
    /// <summary>
    /// 博客正文
    /// </summary>
    public class BlogText:Entity
    {
        /// <summary>
        /// 分类id
        /// </summary>
        public string? CategoryId { get; set; }
        
        /// <summary>
        /// 分类名称
        /// </summary>
        public string? CategoryName { get; set; }

        /// <summary>
        /// 图片
        /// </summary>
        public string? Image { get; set; }

        /// <summary>
        /// 背景图
        /// </summary>
        public string? BackgroundImage { get; set; }

        /// <summary>
        /// 标题
        /// </summary>
        public string? Title { get; set; }

        /// <summary>
        /// 正文
        /// </summary>
        public string? Text  { get; set; }

        /// <summary>
        /// 创建人id
        /// </summary>
        public string? FounderId { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public string? FounderName { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreationTime { get; set; } = DateTime.Now;

        /// <summary>
        /// 阅读量
        /// </summary>
        public int ReadCount { get; set; } = 0;

        /// <summary>
        /// 点赞量
        /// </summary>
        public int LikesCount { get; set; } = 0;

        /// <summary>
        /// 打赏金额
        /// </summary>
        public decimal RewardAmount { get; set; } = 0;

    }
}
